package com.bawei.module_main.apter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class MainPageAdapter constructor(fm:FragmentManager,private var fragment:List<Fragment>,behavior:Int):FragmentPagerAdapter(fm,behavior) {
    override fun getCount(): Int {
        return fragment.size
    }

    override fun getItem(position: Int): Fragment {
        return fragment[position]
    }


}